//package com.plian.system.controller.pm.listedcompany;
//
//import com.plian.Tools.Func;
//import com.plian.Tools.StringPool;
//import com.plian.Tools.pagedata.PageData;
//import com.plian.system.config.Resubmit;
//import com.plian.system.entity.pm.listedcompany.BaseEarningsSummary;
//import com.plian.system.model.CommonCode;
//import com.plian.system.model.ListResult;
//import com.plian.system.model.R;
//import com.plian.system.mybatis.support.Query;
//import com.plian.system.service.pm.listedcompany.IBaseEarningsSummaryService;
//import com.plian.system.vo.pm.listedcompany.BaseEarningsSummaryVO;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.AllArgsConstructor;
//import org.apache.commons.lang3.StringUtils;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.validation.Valid;
//import java.util.List;
//
///**
// * @Description: TODO
// * @Author: Take-off
// * @Date: 2023/2/28 6:18 PM
// * @Param
// * @return
// * @Version: 1.0
// **/
//@RestController
//@AllArgsConstructor
//@RequestMapping("api/earningsreport")
//@Api(value = "BaseEarningsReportController", tags = "企业收益上缴申报-接口")
//public class BaseEarningsReportController {
//
//    private final IBaseEarningsSummaryService baseEarningsReportService;
//
//    @PostMapping("/detail")
//    @ApiOperation(value = "详情-企业", notes = "传入 baseEarningsReport")
//    public R<BaseEarningsSummaryVO> detail(@RequestBody BaseEarningsSummary baseEarningsSummary) {
//        return R.data(baseEarningsReportService.getDetailObj(baseEarningsSummary));
//    }
//
//    @PostMapping("/list")
//    @ApiOperation(value = "分页", notes = "传入query")
//    public ListResult<BaseEarningsSummaryVO> list(@RequestBody Query query) {
//        return baseEarningsReportService.list(query);
//    }
//
//    @PostMapping("/submit")
//    @Resubmit(delaySeconds = 0)
//    @ApiOperation(value = "新增或修改", notes = "传入 baseEarningsSummary")
//    public R<BaseEarningsSummary> submit(@Valid @RequestBody BaseEarningsSummary baseEarningsSummary) {
//        boolean result = baseEarningsReportService.submit(baseEarningsSummary);
//        return result ? R.data(baseEarningsSummary) : new R(CommonCode.FAIL);
//    }
//
//    @PostMapping("/remove")
//    @ApiOperation(value = "删除", notes = "传入 ids")
//    public R remove(@RequestBody PageData pd) {
//        List<String> ids = (List<String>)pd.get("ids");
//        return baseEarningsReportService.deleteLogic(Func.toLongList(StringUtils.join(ids, StringPool.COMMA)))
//                ? new R(CommonCode.SUCCESS) : new R(CommonCode.FAIL);
//    }
//
//
//}
